package com.jinmdz.fmis.api.api.model.calcrule;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

/**
 * 计算编码D0100000请求数据
 *
 * @author LiCongLu
 * @date 2020-04-07 15:50
 */
@ApiModel(value = "计算编码D0100000请求数据", description = "计算编码D0100000请求数据")
public class D0100000Data extends BaseBean {
    /**
     * 项目价格
     */
    @AnValidate(name = "项目价格", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "项目价格", name = "itemPrice", position = 1)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal itemPrice;

    public BigDecimal getItemPrice() {
        return itemPrice;
    }

    public D0100000Data setItemPrice(BigDecimal itemPrice) {
        this.itemPrice = itemPrice;
        return this;
    }
}
